<#assign subTitle="OAuth授权">
<#include "../common/header.ftl">
<link rel="stylesheet" href="${base}/layuiadmin/style/login.css" media="all">

  <div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layadmin-user-login-main">
      <div class="layui-card">
      <div class="layadmin-user-login-box">
        <image src="${base}/favicon.ico" style="width:20px;height:20px;">使用${text.name}账号登录
      </div>
      <div class="layadmin-user-login-box layadmin-user-login-header">
        <h2>"${client.clientName}"想要访问您的${text.name}账号</h2>
        <p>${shiro.principal.subject}</p>
      </div>
      <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
        <div class="layui-form-item">
          <p>"${client.clientName}"访问如下数据:</p>
        </div>
        <div class="layui-form-item">
          <li>1.获取账号基本信息</li>   
        </div>
        <div class="layui-form-item">
          <li>2.授予其${authz.scope!}权限</li>   
        </div>
        <div class="layui-form-item">
          <p>请确保您信任"${client.clientName}"</p>
        </div>
        <div class="layui-form-item">
          <div class="layui-row">
            <div class="layui-col-xs6" >
                <div style="margin:0px 5px;">
                    <a href="${mvc.uri("LoginController#execute")}" class="layui-btn layui-btn-primary layui-btn-fluid" >取消</a>  
                </div>
            </div>
            <div class="layui-col-xs6" >
                <div style="margin:0px 5px;">
                    <a href="${mvc.basePath}/authorize?key=${key}&${request.queryString!}" class="layui-btn layui-btn-fluid" >允许</a>  
                </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
    
    <div class="layui-trans layadmin-user-login-footer">
      <p>系统遵循Apache License Version 2.0</p>
    </div>
  </div>



<#include "../common/footer.ftl">